<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xhtml xsl">
	<xsl:output method="html" media-type="text/xhtml" omit-xml-declaration="yes" 
	version="1.0" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
	doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/>	
	
	<xsl:template match="header"> 
		<div id="header">
			<img src="{//header/logoImg}" alt="{//header/logoImg/@alt}" />	
			<ul>
				<xsl:for-each select="//links/link">
					<xsl:if test="@index=1"><xsl:comment> §§start </xsl:comment></xsl:if>
					<xsl:choose>
						<xsl:when test="/page/@pageName=@href">		
							<li class="onlink"><xsl:value-of select="." /></li>
						</xsl:when>
						<xsl:otherwise>
							<li><a href="{@href}"><xsl:value-of select="." /></a></li>
						</xsl:otherwise>
					</xsl:choose>
					<xsl:if test="@index=1"><xsl:comment> §§end </xsl:comment></xsl:if>
				</xsl:for-each>	
			</ul>
		</div> <!-- header -->
	</xsl:template>
		
</xsl:stylesheet>
